package Data;

import java.io.Serializable;
import java.sql.Timestamp;

public class FileData implements Serializable {
    private static final long serialVersionUID = 5442710183388828792L;

    private String MD5;
    private String sender;
    private String receiver;
    private String file_name;
    private byte[] bytes;
    private String file_id;

    private String suffix_name;

    public String getSuffix_name() {
        return suffix_name;
    }

    public void setSuffix_name(String suffix_name) {
        this.suffix_name = suffix_name;
    }

    private Timestamp timestamp;

    public Timestamp getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Timestamp timestamp) {
        this.timestamp = timestamp;
    }

    public FileData() {
    }

    public FileData(String MD5, String sender, String receiver, String file_name, byte[] bytes, String file_id) {
        this.MD5 = MD5;
        this.sender = sender;
        this.receiver = receiver;
        this.file_name = file_name;
        this.bytes = bytes;
        this.file_id = file_id;
    }

    public String getMD5() {
        return MD5;
    }

    public void setMD5(String MD5) {
        this.MD5 = MD5;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getFile_name() {
        return file_name;
    }

    public void setFile_name(String file_name) {
        this.file_name = file_name;
    }

    public byte[] getBytes() {
        return bytes;
    }

    public void setBytes(byte[] bytes) {
        this.bytes = bytes;
    }

    public String getFile_id() {
        return file_id;
    }

    public void setFile_id(String file_id) {
        this.file_id = file_id;
    }
}
